import request from '/@/utils/request';

export function fetchList(query?: Object) {
	return request({
		url: '/coalSystem/company/page',
		method: 'get',
		params: query,
	});
}
export function addObj(obj?: Object) {
	return request({
		url: '/coalSystem/company',
		method: 'post',
		data: obj,
	});
}
// export function getObj(id?: string) {
// 	return request({
// 		url: '/admin/audit/' + id,
// 		method: 'get',
// 	});
// }

export function delObjs(ids?: string) {
	return request({
		url: `/coalSystem/company`,
		method: 'delete',
		data: [ids],
	});
}
export function editObj(obj?: Object) {
	return request({
		url: '/coalSystem/company',
		method: 'put',
		data: obj,
	});
}
